﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace www.Stertex.com.Models
{
    public class SessionManager
    {

        public static UserProfile Profile
        {
            get
            {
                var profile =  HttpContext.Current.Session["UserProfile"] as UserProfile;
                if (profile == null) profile = new UserProfile.AnonymosProfile();
                return profile;

            }

            set
            {

                HttpContext.Current.Session["UserProfile"] = value;
            }
        }

    }
}